﻿@{
    ViewBag.Title = "电表实时负荷";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section scripts{
        <script src="~/Areas/Pacm/ViewModels/Pacm.com.js"></script>
        <script src="~/Areas/Pacm/ViewModels/Pacm.viewModel.search.js"></script>
        <script type="text/javascript">
            var data = @Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(Model));
            var viewModel = function(){ 
                Pacm.viewModel.search.apply(this,arguments);
            };
            ko.bindingViewModel(new viewModel(data));
        </script>
}
        <div class="z-toolbar">
            <a id="a_refresh" href="#" plain="true" class="easyui-linkbutton" icon="icon-arrow_refresh" title="刷新" data-bind="click:refreshClick">刷新</a>
            <a id="a_export" href="#" class="easyui-splitbutton" data-options="menu:'#dropdown',iconCls:'icon-download'">导出</a>
        </div>

        <div id="dropdown" style="width:100px; display:none;">  
            <div data-options="iconCls:'icon-ext-xls'"      suffix="xls"    data-bind="click:downloadClick">Excel2003   </div>  
            <div data-options="iconCls:'icon-page_excel'"   suffix="xlsx"   data-bind="click:downloadClick">Excel2007   </div>  
            <div data-options="iconCls:'icon-ext-doc'"      suffix="doc"    data-bind="click:downloadClick">Word2003    </div>  
        </div> 

        <div id="condition" class="container_12" style="position:relative;">
            <div class="grid_1 lbl">电表名称</div>
            <div class="grid_5 val"><input type="text" style="width:405px" data-bind="datasource:dataSource.dbzdItems ,comboboxValue:form.AI名称" class="z-txt easyui-combobox" data-options="showblank:true"/></div>
            <div class="clear"></div>
            <div class="grid_1 lbl">查询年度</div>
            <div class="grid_2 val"><input type="text" data-bind="datasource:dataSource.yearItems ,comboboxValue:form.年" class="z-txt easyui-combobox" data-options="showblank:true"/></div>
            <div class="grid_1 lbl">查询月份</div>
            <div class="grid_2 val"><input type="text" data-bind="datasource:dataSource.monthItems ,comboboxValue:form.月" class="z-txt easyui-combobox" data-options="showblank:true"/></div>
            <div class="grid_1 lbl">查询日</div>
            <div class="grid_2 val"><input type="text" data-bind="datasource:dataSource.dayItesm ,comboboxValue:form.日" class="z-txt easyui-combobox" data-options="showblank:true"/></div>

            <div class="clear"></div>
            <div class="prefix_9" style="position:absolute;top:5px;height:0;">  
                <a id="a_search" href="#" class="button button-blue" style="margin:0 15px;" data-bind="click:searchClick">查询</a> 
                <a id="a_reset" href="#" class="button button-blue" data-bind="click:clearClick">清空</a>
            </div>
        </div>

        <table id="gridlist" data-bind="datagrid:grid">
             <thead data-options="frozen:true">
                    <tr>
                        <th field="Rq" sortable="false" align="center"      width="80">日期</th>  
                        <th field="AI名称" sortable="false" align="left"  width="350">电表名称</th>
                    </tr>
              </thead>
            <thead>  
            <tr>  
                <th field="实时值00_00" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值00_00</th>
                <th field="实时值00_15" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值00_15</th>
                <th field="实时值00_30" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值00_30</th>
                <th field="实时值00_45" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值00_45</th>
                <th field="实时值01_00" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值01_00</th>
                <th field="实时值01_15" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值01_15</th>
                <th field="实时值01_30" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值01_30</th>
                <th field="实时值01_45" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值01_45</th>
                <th field="实时值02_00" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值02_00</th>
                <th field="实时值02_15" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值02_15</th>
                <th field="实时值02_30" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值02_30</th>
                <th field="实时值02_45" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值02_45</th>
                <th field="实时值02_00" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值02_00</th>
                <th field="实时值03_15" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值03_15</th>
                <th field="实时值03_30" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值03_30</th>
                <th field="实时值03_45" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值03_45</th>
                <th field="实时值04_00" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值04_00</th>
                <th field="实时值04_15" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值04_15</th>
                <th field="实时值04_30" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值04_30</th>
                <th field="实时值04_45" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值04_45</th>
                <th field="实时值05_00" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值05_00</th>
                <th field="实时值05_15" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值05_15</th>
                <th field="实时值05_30" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值05_30</th>
                <th field="实时值05_45" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值05_45</th>
                <th field="实时值06_00" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值06_00</th>
                <th field="实时值06_15" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值06_15</th>
                <th field="实时值06_30" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值06_30</th>
                <th field="实时值06_45" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值06_45</th>
                <th field="实时值07_00" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值07_00</th>
                <th field="实时值07_15" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值07_15</th>
                <th field="实时值07_30" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值07_30</th>
                <th field="实时值07_45" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值07_45</th>
                <th field="实时值08_00" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值08_00</th>
                <th field="实时值08_15" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值08_15</th>
                <th field="实时值08_30" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值08_30</th>
                <th field="实时值08_45" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值08_45</th>
                <th field="实时值09_00" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值09_00</th>
                <th field="实时值09_15" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值09_15</th>
                <th field="实时值09_30" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值09_30</th>
                <th field="实时值09_45" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值09_45</th>
                <th field="实时值10_00" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值10_00</th>
                <th field="实时值10_15" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值10_15</th>
                <th field="实时值10_30" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值10_30</th>
                <th field="实时值10_45" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值10_45</th>
                <th field="实时值11_00" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值11_00</th>
                <th field="实时值11_15" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值11_15</th>
                <th field="实时值11_30" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值11_30</th>
                <th field="实时值11_45" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值11_45</th>
                <th field="实时值12_00" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值12_00</th>
                <th field="实时值12_15" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值12_15</th>
                <th field="实时值12_30" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值12_30</th>
                <th field="实时值12_45" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值12_45</th>
                <th field="实时值13_00" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值13_00</th>
                <th field="实时值13_15" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值13_15</th>
                <th field="实时值13_30" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值13_30</th>
                <th field="实时值13_45" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值13_45</th>
                <th field="实时值14_00" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值14_00</th>
                <th field="实时值14_15" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值14_15</th>
                <th field="实时值14_30" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值14_30</th>
                <th field="实时值14_45" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值14_45</th>
               

                <th field="实时值15_00" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值15_00</th>
                <th field="实时值15_15" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值15_15</th>
                <th field="实时值15_30" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值15_30</th>
                <th field="实时值15_45" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值15_45</th>

                <th field="实时值16_00" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值16_00</th>
                <th field="实时值16_15" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值16_15</th>
                <th field="实时值16_30" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值16_30</th>
                <th field="实时值16_45" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值16_45</th>

                <th field="实时值17_00" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值17_00</th>
                <th field="实时值17_15" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值17_15</th>
                <th field="实时值17_30" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值17_30</th>
                <th field="实时值17_45" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值17_45</th>

                <th field="实时值18_00" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值18_00</th>
                <th field="实时值18_15" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值18_15</th>
                <th field="实时值18_30" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值18_30</th>
                <th field="实时值18_45" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值18_45</th>

                <th field="实时值19_00" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值19_00</th>
                <th field="实时值19_15" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值19_15</th>
                <th field="实时值19_30" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值19_30</th>
                <th field="实时值19_45" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值19_45</th>

                <th field="实时值20_00" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值20_00</th>
                <th field="实时值20_15" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值20_15</th>
                <th field="实时值20_30" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值20_30</th>
                <th field="实时值20_45" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值20_45</th>

                <th field="实时值21_00" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值21_00</th>
                <th field="实时值21_15" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值21_15</th>
                <th field="实时值21_30" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值21_30</th>
                <th field="实时值21_45" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值21_45</th>

                <th field="实时值22_00" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值22_00</th>
                <th field="实时值22_15" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值22_15</th>
                <th field="实时值22_30" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值22_30</th>
                <th field="实时值22_45" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值22_45</th>

                <th field="实时值23_00" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值23_00</th>
                <th field="实时值23_15" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值23_15</th>
                <th field="实时值23_30" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值23_30</th>
                <th field="实时值23_45" sortable="false" align="right"  formatter="com.formatMoney"  width="90">实时值23_45</th>
                <th field="日平均值" sortable="false" align="right" formatter="com.formatMoney"  width="90">日平均值</th>
            </tr>                            
            </thead>   
        </table> 

